package com.genersoft.iot.vmp.common;

public enum ResultCode {
    OK(200,"成功"),
    PARAMS_ERROR(300, "参数错误或缺失"),
    SIGN_ERROR(501, "Sign校验失败"),
    ERROR_CODE(500, "内部错误"),
    NOTFOUND_CODE(404, "找不到资源"),
    TIMEOUT_ERROR(408, "设备请求超时");

    private final int code;

    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
